<template>
  <div class="app">
    <Navbar />
    <main class="container">
      <router-view />
    </main>
  </div>
</template>

<script setup>
import Navbar from './components/Navbar.vue'
</script>

<style>
:root {
  /* 现代化浅色主题色彩方案 */
  --bg: #ffffff;
  --fg: #1e293b;
  --muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.1);
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* 边框圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* 阴影效果 */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* 发光效果 */
  --glow: 0 0 15px rgba(99, 102, 241, 0.3);
  --glow-soft: 0 0 25px rgba(99, 102, 241, 0.1);
}

html, body, #app { 
  height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

::selection { 
  background: rgba(99, 102, 241, 0.3); 
  color: var(--fg); 
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 16px;
  position: relative;
}

/* 炫酷的全站氛围效果 */
.app {
  position: relative;
  min-height: 100vh;
}

.app::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 25% -10%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 55%),
    radial-gradient(circle at 10% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}

/* 响应式容器调整 */
@media (max-width: 768px) {
  .container {
    margin: 16px auto;
    padding: 0 12px;
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
</style>